﻿Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Runtime.Serialization
Imports System.Text
Imports System.Threading.Tasks

Namespace vindinium
	<DataContract>
	Friend Class GameResponse
		<DataMember>
		Friend game As Game

		<DataMember>
		Friend hero As Hero

		<DataMember>
		Friend token As String

		<DataMember>
		Friend viewUrl As String

		<DataMember>
		Friend playUrl As String
	End Class

	<DataContract>
	Friend Class Game
		<DataMember>
		Friend id As String

		<DataMember>
		Friend turn As Integer

		<DataMember>
		Friend maxTurns As Integer

		<DataMember>
		Friend heroes As List(Of Hero)

		<DataMember>
		Friend board As Board

		<DataMember>
		Friend finished As Boolean
	End Class

	<DataContract>
	Friend Class Hero
		<DataMember>
		Friend id As Integer

		<DataMember>
		Friend name As String

		<DataMember>
		Friend elo As Integer

		<DataMember>
		Friend pos As Pos

		<DataMember>
		Friend life As Integer

		<DataMember>
		Friend gold As Integer

		<DataMember>
		Friend mineCount As Integer

		<DataMember>
		Friend spawnPos As Pos

		<DataMember>
		Friend crashed As Boolean
	End Class

	<DataContract>
	Friend Class Pos
		<DataMember>
		Friend x As Integer

		<DataMember>
		Friend y As Integer
	End Class

	<DataContract>
	Friend Class Board
		<DataMember>
		Friend size As Integer

		<DataMember>
		Friend tiles As String
	End Class
End Namespace
